/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.anbang.website.vo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.google.common.collect.Lists;

/**
 * 订单信息VO
 * @author peepul
 */
public class Order implements Serializable{

	private static final long serialVersionUID = -3932571473745510L;
	
	private Long id ;//
	private String erpCustomerId;		// ERP客户唯一标识
	private Double amount;		// 订单金额
	private Double discountAmount; //优惠金额
	private Long total;		// 商品数量
	private String state;		// 审核状态
	private String isCas;		// 是否收款
	private String relseqid;		// erp系统订单编号
	private Long customerId;		// 客户id
	private String orderCode;		// 订单编码
	private String orderName;		// 订单名称
	private Integer isAudit;		//是否审核， 1：审核中 0：未审核
	private Integer status ;		//单据状态  1 正常 0 作废
	private List<OrderDetail> orderDetailList = Lists.newArrayList();		
	protected Date createDate;	// 创建日期
	
	protected User createBy;	// 创建者
	private Customer customer;
	
	private String startDate;//开始日期
	private String endDate;//结束日期
	
	public Order() {
		super();
	}

	public Order(Long id){
		this.id = id;
	}

	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @return the erpCustomerId
	 */
	public String getErpCustomerId() {
		return erpCustomerId;
	}

	/**
	 * @param erpCustomerId the erpCustomerId to set
	 */
	public void setErpCustomerId(String erpCustomerId) {
		this.erpCustomerId = erpCustomerId;
	}

	/**
	 * @return the amount
	 */
	public Double getAmount() {
		return amount;
	}

	/**
	 * @param amount the amount to set
	 */
	public void setAmount(Double amount) {
		this.amount = amount;
	}

	/**
	 * @return the discountAmount
	 */
	public Double getDiscountAmount() {
		return discountAmount;
	}

	/**
	 * @param discountAmount the discountAmount to set
	 */
	public void setDiscountAmount(Double discountAmount) {
		this.discountAmount = discountAmount;
	}

	/**
	 * @return the total
	 */
	public Long getTotal() {
		return total;
	}

	/**
	 * @param total the total to set
	 */
	public void setTotal(Long total) {
		this.total = total;
	}

	/**
	 * @return the state
	 */
	public String getState() {
		return state;
	}

	/**
	 * @param state the state to set
	 */
	public void setState(String state) {
		this.state = state;
	}

	/**
	 * @return the isCas
	 */
	public String getIsCas() {
		return isCas;
	}

	/**
	 * @param isCas the isCas to set
	 */
	public void setIsCas(String isCas) {
		this.isCas = isCas;
	}

	/**
	 * @return the relseqid
	 */
	public String getRelseqid() {
		return relseqid;
	}

	/**
	 * @param relseqid the relseqid to set
	 */
	public void setRelseqid(String relseqid) {
		this.relseqid = relseqid;
	}

	/**
	 * @return the customerId
	 */
	public Long getCustomerId() {
		return customerId;
	}

	/**
	 * @param customerId the customerId to set
	 */
	public void setCustomerId(Long customerId) {
		this.customerId = customerId;
	}

	/**
	 * @return the orderCode
	 */
	public String getOrderCode() {
		return orderCode;
	}

	/**
	 * @param orderCode the orderCode to set
	 */
	public void setOrderCode(String orderCode) {
		this.orderCode = orderCode;
	}

	/**
	 * @return the orderName
	 */
	public String getOrderName() {
		return orderName;
	}

	/**
	 * @param orderName the orderName to set
	 */
	public void setOrderName(String orderName) {
		this.orderName = orderName;
	}

	/**
	 * @return the isAudit
	 */
	public Integer getIsAudit() {
		return isAudit;
	}

	/**
	 * @param isAudit the isAudit to set
	 */
	public void setIsAudit(Integer isAudit) {
		this.isAudit = isAudit;
	}

	/**
	 * @return the status
	 */
	public Integer getStatus() {
		return status;
	}

	/**
	 * @param status the status to set
	 */
	public void setStatus(Integer status) {
		this.status = status;
	}

	/**
	 * @return the orderDetailList
	 */
	public List<OrderDetail> getOrderDetailList() {
		return orderDetailList;
	}

	/**
	 * @param orderDetailList the orderDetailList to set
	 */
	public void setOrderDetailList(List<OrderDetail> orderDetailList) {
		this.orderDetailList = orderDetailList;
	}

	/**
	 * @return the createDate
	 */
	public Date getCreateDate() {
		return createDate;
	}

	/**
	 * @param createDate the createDate to set
	 */
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	/**
	 * @return the createBy
	 */
	public User getCreateBy() {
		return createBy;
	}

	/**
	 * @param createBy the createBy to set
	 */
	public void setCreateBy(User createBy) {
		this.createBy = createBy;
	}

	/**
	 * @return the customer
	 */
	public Customer getCustomer() {
		return customer;
	}

	/**
	 * @param customer the customer to set
	 */
	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	/**
	 * @return the startDate
	 */
	public String getStartDate() {
		return startDate;
	}

	/**
	 * @param startDate the startDate to set
	 */
	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	/**
	 * @return the endDate
	 */
	public String getEndDate() {
		return endDate;
	}

	/**
	 * @param endDate the endDate to set
	 */
	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}
	
}